
class ViewItemModel<T> {
  /// data可以是图标、图片（String路径）
  final T data;
  /// 标题
  final String title;

  const ViewItemModel({
    required this.data,
    required this.title,
  });
}

class ListItemModel {
  final String imgPath;
  final String title;
  final String desc;
  final double startPrice;
  final double deliveryPrice;
  final double score;
  final int monthCount;
  final double distance;
  final int costTime;


  const ListItemModel({
    required this.imgPath,
    required this.title,
    required this.desc,
    required this.startPrice,
    required this.deliveryPrice,
    required this.score,
    required this.monthCount,
    required this.distance,
    required this.costTime,
  });
}


// class BListListItemModel{
//   final String businessName;
//   final String businessExplain;
//   final double startPrice;
//   final double deliveryPrice;
//   final String businessImg;
//
//   const BListListItemModel({
//     required this.businessName,
//     required this.businessExplain,
//     required this.startPrice,
//     required this.deliveryPrice,
//     required this.businessImg,
//   });
// }